package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseDictionary;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseDictionary is a Querydsl query type for EBaseDictionary
 */
@Label("BaseDictionary查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseDictionary extends RelationalPathBase<EBaseDictionary> {

    private static final long serialVersionUID = -564014288;

    public static final QBaseDictionary baseDictionary = new QBaseDictionary("base_dictionary");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseDictionary> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbDictionary> _tbDictionaryBaseDictionary1Fk = createInvForeignKey(id, "base_dictionary_id");

    }

    public final StringPath id = createString("id");

    public final StringPath typeCode = createString("typeCode");

    public final StringPath typeName = createString("typeName");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseDictionary(String variable) {
        super(EBaseDictionary.class, forVariable(variable), "null", "base_dictionary");
        addMetadata();
    }

    public QBaseDictionary(String variable, String schema, String table) {
        super(EBaseDictionary.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseDictionary(Path<? extends EBaseDictionary> path) {
        super(path.getType(), path.getMetadata(), "null", "base_dictionary");
        addMetadata();
    }

    public QBaseDictionary(PathMetadata<?> metadata) {
        super(EBaseDictionary.class, metadata, "null", "base_dictionary");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(typeCode, ColumnMetadata.named("typeCode").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(typeName, ColumnMetadata.named("typeName").withIndex(3).ofType(Types.VARCHAR).withSize(45));
    }

}

